import Mogo from "./mogo";

const defaultErrorHandel = err => {
  console.error(err);
};

Mogo.init = function(option) {
  Mogo._config.domain = option.domain;
  Mogo._config.upload_url = option.upload_url;
  Mogo._config.ajaxErrorHandel = option.ajaxErrorHandel || defaultErrorHandel;
};
